<!-- head -->
{include file='public/head' /}
<!-- head -->
<!-- left -->
{include file='public/left' /}
<!-- left -->

<div class="content-wrapper">
    <section class="content-header">
        <h1>
            添加销售
            <small>销售信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 销售管理</a></li>
            <li>管理员</li>
            <li class="active">添加</li>
        </ol>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <!-- Horizontal Form -->
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">填写信息</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" method="post" action="{:url('selladmin/Admin/AddAdmin','','')}" enctype="multipart/form-data">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">选择经理</label>
                                <div class="col-sm-10">
                                    <select class="form-control select" name="pid">
                                        {volist name='selladmin' id='adminlist'}
                                        <option value="{$adminlist.id}">{$adminlist.admin_note}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">账号</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="admin_name" name="admin_name" placeholder="请输入账号（手机号）...">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">名称</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="admin_note" name="admin_note" placeholder="请输入名称（真实姓名）...">
                                </div>
                            </div>
                            {if condition="$level eq 1 or $level eq 0"}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">组代码</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="admin_note" name="first_name" placeholder="请输入2位字母的组代码,不能修改，请慎重...">
                                </div>
                            </div>
                            {/if}
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
                                <div class="col-sm-10">
                                    <input type="password" class="form-control" id="admin_pwd" name="admin_pwd" placeholder="请输入密码...">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="img" class="col-sm-2 control-label">头像</label>
                                <div class="col-sm-10">
                                    <input type="file" id="photo" name='photo'>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">请输入你的密码</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="adminname" name="adminname" placeholder="安全验证：请输入你的密码">
                                </div>
                            </div>

                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-info pull-right" name="submit" value="3">保存</button>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </div>
        </div>
    </section>
</div>
<!-- foot -->
{include file='public/foot' /}
<!-- foot -->